package Boundry;

import Boundry.GenericTools.IPanelOperation;
import Boundry.GenericTools.InputPanel;
import Boundry.GenericTools.ViewDataPanel;
import javax.swing.JLabel;

import javax.swing.JButton;
import javax.swing.ImageIcon;
import javax.swing.JPanel;

public class UserPanel extends InputPanel  implements IPanelOperation
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public JButton getBtnSearchReq() {
		return btnSearchReq;
	}
	public JButton getBtnSubmitreq() {
		return btnSubmitreq;
	}
	private JButton btnSearchReq;
	private JButton btnSubmitreq;
	public UserPanel() {
		
		JLabel lblUser = new JLabel("User");
		lblUser.setBounds(389, 11, 46, 14);
		mainPanel.add(lblUser);
		
		JLabel lblViewYourRequest = new JLabel("Search Request");
		lblViewYourRequest.setBounds(271, 155, 95, 14);
		mainPanel.add(lblViewYourRequest);
		
		JLabel lblSubmitNewRequest = new JLabel("Submit New Request");
		lblSubmitNewRequest.setBounds(448, 155, 135, 14);
		mainPanel.add(lblSubmitNewRequest);
		
		btnSearchReq = new JButton("");
		btnSearchReq.setIcon(new ImageIcon(UserPanel.class.getResource("/ICONS/2_action_search.png")));
		btnSearchReq.setBounds(261, 109, 46, 40);
		btnSearchReq.setSize(100, 40);
		mainPanel.add(btnSearchReq);
		
		btnSubmitreq = new JButton("");
		btnSubmitreq.setIcon(new ImageIcon(UserPanel.class.getResource("/ICONS/5_content_new_email.png")));
		btnSubmitreq.setBounds(448, 109, 135, 78);
		btnSubmitreq.setSize(100, 40);
		mainPanel.add(btnSubmitreq);
		
		JLabel label = new JLabel("");
		label.setIcon(new ImageIcon(UserPanel.class.getResource("/ICONS/\u05D1\u05E8\u05D0\u05D5\u05D3\u05D4.jpg")));
		label.setBounds(10, 11, 153, 146);
		mainPanel.add(label);
		hideButtons();
	}
	public JPanel getMainPanel()
	{
		return mainPanel;	
	}
	@Override
	public String apHelpButton() {
		return "Here the user that is not a worker in the system can preform its operations";
	}
	@Override
	public String setTitle() {
		return ("General User Window ");
	}
}
